/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package callProcs;

import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author jorgeraulgrion
 */
public class LeerArchivodeConexion {
    
    File Fichero = null;
    
    String nombre = null;
    ObjectInputStream entrada;
    FileInputStream FileClase;
    BufferedInputStream BufFile;
    DataInputStream DataClase;
    
    
    public LeerArchivodeConexion(){
        File Fichero = new File("sqlConecttion.RTF");
        try {
            FileClase = new FileInputStream(Fichero);
            BufFile = new BufferedInputStream(FileClase);
            DataClase = new DataInputStream(BufFile);
            String linea;
            int contpack1 = 0;
            String tipo;
            try {
                while (DataClase.available() != 0) {
                    linea = DataClase.readLine().trim();
                    System.out.println(linea);
                }
            } catch (IOException ex) {
                Logger.getLogger(LeerArchivodeConexion.class.getName()).log(Level.SEVERE, null, ex);
            }
        } catch (FileNotFoundException ex) {
            Logger.getLogger(LeerArchivodeConexion.class.getName()).log(Level.SEVERE, null, ex);
        }
}
}   
